<script>
import { getToken, Login } from "./common/utils";
export default {
  onLaunch: function () {
    Login()
    this.globalData.sysinfo = uni.getSystemInfoSync();
  },
  globalData: {
    getModel: function () {
      //获取手机型号
      return wx.getSystemInfoSync()["model"];
    },
    getVersion: function () {
      //获取微信版本号
      return wx.getSystemInfoSync()["version"];
    },
    getSystem: function () {
      //获取操作系统版本
      return wx.getSystemInfoSync()["system"];
    },
    getPlatform: function () {
      //获取客户端平台
      return wx.getSystemInfoSync()["platform"];
    },
    getSDKVersion: function () {
      //获取客户端基础库版本
      return wx.getSystemInfoSync()["SDKVersion"];
    },
    userInfo: null,
    platform: "",
    screenWidth: uni.getSystemInfoSync().screenWidth,
    screenHeight: uni.getSystemInfoSync().screenHeight,
    BLEInformation: {
      platform: "",
      deviceId: "",
      writeCharaterId: "",
      writeServiceId: "",
      notifyCharaterId: "",
      notifyServiceId: "",
      readCharaterId: "",
      readServiceId: ""
    }
  },
  methods: {}
}
</script>

<style lang="scss">
/*每个页面公共css */
// @import '@/uni_modules/uni-scss/index.scss';
@import "@/uni_modules/uview-ui/index.scss";

// 设置整个项目的背景色
page {
  background-color: #f5f5f5;
}

/deep/.u-cell-group__title__text.data-v-7369b029 {
  font-size: 18px !important;
  font-weight: bold;
}

/deep/.u-cell__body.data-v-1c4434ae {
  padding: 15px 15px !important;
}

/deep/.u-button--square.data-v-2bf0e569 {
  border-radius: inherit !important;
}
</style>
